package fivm.cross.platform.steamobj.sys;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import fivm.cross.platform.ficommon.distinguish.FiObjectId;
import fivm.cross.platform.ficommon.distinguish.GsonSimpleSerializable;

import java.util.ArrayList;
import java.util.List;


/**
 * Created by Administrator on 2016/5/15.
 * 对应device_ctrl表
 */
public class DeviceControlStream extends GsonSimpleSerializable {

    @Expose @SerializedName("_id")
    private FiObjectId id=FiObjectId.NewNull;
    @Expose @SerializedName("Enable")
    private boolean enable =true;        //可用不
    @Expose @SerializedName("DeviceConfigs")
    private DeviceConfigs deviceConfigs =new DeviceConfigs();
    @Expose @SerializedName("ListAppConfigsId")
    private List<FiObjectId> listAppConfigsId =new ArrayList<FiObjectId>();

    //private AppsEnvConfigs appsEnvConfigs=new AppsEnvConfigs();  //app的配置环境

    private boolean Alive;  //是否在线

    public DeviceControlStream(DeviceConfigs deviceConfigs, List<FiObjectId> listAppConfigsId){
        this.deviceConfigs = deviceConfigs;
        this.listAppConfigsId = listAppConfigsId;
    }
    public DeviceControlStream(){
        //this.listAppConfigsId=new AppsEnvConfigs();
        this.deviceConfigs =new DeviceConfigs();
    }




    public DeviceConfigs getDeviceConfigs() {
        return deviceConfigs;
    }

    public void setDeviceConfigs(DeviceConfigs deviceConfigs) {
        this.deviceConfigs = deviceConfigs;
    }

    public FiObjectId getId() {
        return this.id;
    }

    public void setId(FiObjectId _id) {
        this.id = _id;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public boolean isAlive() {
        return Alive;
    }

    public void setAlive(boolean alive) {
        Alive = alive;
    }


    public List<FiObjectId> getListAppConfigsId() {
        return listAppConfigsId;
    }

    public void setListAppConfigsId(List<FiObjectId> listAppConfigsId) {
        this.listAppConfigsId = listAppConfigsId;
    }
}
